package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * dh_center
 * 
 * @author
 */
public class Center implements Serializable {

	/**
	 * 
	 */
	private static final long	serialVersionUID	= 1420944271147180999L;

	private String				id;

	private String				name;

	private Date				createdate;

	private String				description;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		Center other = (Center) that;
		return (this.getId() == null ? other.getId() == null : this.getId().equals( other.getId() ))
				&& (this.getName() == null ? other.getName() == null : this.getName().equals( other.getName() ))
				&& (this.getCreatedate() == null ? other.getCreatedate() == null : this.getCreatedate().equals( other.getCreatedate() ))
				&& (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals( other.getDescription() ));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
		result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
		result = prime * result + ((getCreatedate() == null) ? 0 : getCreatedate().hashCode());
		result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
		return result;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append( getClass().getSimpleName() );
		sb.append( " [" );
		sb.append( "Hash = " ).append( hashCode() );
		sb.append( ", id=" ).append( id );
		sb.append( ", name=" ).append( name );
		sb.append( ", createdate=" ).append( createdate );
		sb.append( ", description=" ).append( description );
		sb.append( ", serialVersionUID=" ).append( serialVersionUID );
		sb.append( "]" );
		return sb.toString();
	}

	public Center() {
		super();
	}

	public Center(String id, String name, Date createdate, String description) {
		super();
		this.id = id;
		this.name = name;
		this.createdate = createdate;
		this.description = description;
	}
}